import { defineStore } from "pinia";
import { ref } from "vue";
export const useChannelStore = defineStore('channel', () => {
    // 顶层存储频道ID=> 状态提升/ vuex=>pinia
    const seledId = ref(0)
    // 修改选中频道ID
    const changeSeled = (sel: number) => {
        seledId.value = sel
    }
    return { seledId ,changeSeled }
})